package com.dts.client;

import java.io.BufferedReader;
import java.io.IOException;

public class ReceiveHandler implements Runnable{

    private BufferedReader in;

    public ReceiveHandler(BufferedReader in){
        this.in = in;
    }
    @Override
    public void run() {
        while(true){
            try {
                System.out.println(in.readLine());
            } catch (IOException e) {
                throw new RuntimeException(e);
            }

        }
    }
}
